package com.yb.nowcoder;

import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;

/**
 * 华为机试练习第三题
 * 明明的随机数
 */
public class Main3 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {
            int n = Integer.parseInt(in.nextLine());
            Set<Integer> set = new TreeSet<>();
            for (int i = 0; i < n; i++) {
                set.add(Integer.parseInt(in.nextLine()));
            }
            for (Integer i : set) {
                System.out.println(i);
            }
        }
    }
}
